CREATE TABLE [dbo].[District]
(
[Id] [int] NOT NULL,
[Name] [nvarchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CityId] [int] NOT NULL,
[Code] [nchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[District] ADD CONSTRAINT [PK_District] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[District] ADD CONSTRAINT [FK_District_City] FOREIGN KEY ([CityId]) REFERENCES [dbo].[City] ([Id])
GO
